<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            /* 因为section虽然也是div的父元素但是因为他后面要做旋转 也是需要3d透视效果的 所以这里透视加到父级的父级爷级了！ 这个值是参考实际调整的 并不固定 这里1000看着的实际效果看着比较合适所以用这个 */
            perspective:1000px;
        }
        section {
            position: relative;
            width: 300px;
            height: 200px;
            margin: 200px auto;
            background: url(../images/bear.png) repeat;
            transform-style: preserve-3d;
            animation: rotate 10s linear infinite;
        }
        section:hover {
            animation-play-state: paused;
        }
        @keyframes rotate {
            0% {

            }
            100% {
                transform:rotateY(360deg);
            }
        }
        div {position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: url(../images/dog.jpg) no-repeat;
        }
        div:nth-child(1) {
            transform: rotateY(0deg) translateZ(300px);
        }
        div:nth-child(2) {
            transform: rotatey(60deg) translateZ(300px);
        }
        div:nth-child(3) {
            transform: rotatey(120deg) translateZ(300px);
        } 
        div:nth-child(4) {
            transform: rotatey(180deg) translateZ(300px);
        }
        div:nth-child(5) {
            transform: rotatey(240deg) translateZ(300px);
        }
        div:nth-child(6) {
            transform: rotatey(300deg) translateZ(300px);
        } 
    </style>
</head>
<body>
    <section>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </section>
</body>
</html>